// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '产品信息',
        name: 'ProductInformation',
        url: "/ProductInformation/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProductNumber":"","ProductName":"","CId":"","ZId":"","DId":"","PId":"","ProductQuantity":"","ProductModel":"","ProductSpecification":"","ProductImage":"","ProductNote":"","ProductStatus":""};
    const editFormOptions = [[{"title":"产品编号","field":"ProductNumber","type":"text"},
                               {"title":"产品名称","field":"ProductName","type":"text"}],
                              [{"dataKey":"产品类型11","data":[],"title":"产品类型（产品类型外键）","field":"CId","type":"select"},
                               {"dataKey":"制造方式11","data":[],"title":"制造方式(制造方式外键)","field":"ZId","type":"select"}],
                              [{"dataKey":"单位11","data":[],"title":"单位(单位外键)","field":"DId","type":"select"},
                               {"dataKey":"供应商11","data":[],"title":"品牌厂商(供应商外键)","field":"PId","type":"select"}],
                              [{"title":"数量","field":"ProductQuantity","type":"text"},
                               {"title":"型号","field":"ProductModel","type":"text"}],
                              [{"title":"规格","field":"ProductSpecification","type":"text"},
                               {"title":"产品图片","field":"ProductImage","type":"img"}],
                              [{"title":"备注","field":"ProductNote","type":"text"},
                               {"dataKey":"状态1","data":[],"title":"状态","field":"ProductStatus","type":"select"}]];
    const searchFormFields = {"ProductNumber":"","ProductName":"","CId":"","ZId":"","DId":"","PId":"","ProductQuantity":"","ProductModel":"","ProductSpecification":"","ProductImage":"","ProductNote":"","ProductStatus":""};
    const searchFormOptions = [[{"title":"产品编号","field":"ProductNumber"},{"title":"产品名称","field":"ProductName"},{"dataKey":"产品类型11","data":[],"title":"产品类型（产品类型外键）","field":"CId","type":"number"},{"dataKey":"制造方式11","data":[],"title":"制造方式(制造方式外键)","field":"ZId","type":"number"}],[{"dataKey":"单位11","data":[],"title":"单位(单位外键)","field":"DId","type":"number"},{"dataKey":"供应商11","data":[],"title":"品牌厂商(供应商外键)","field":"PId","type":"number"},{"title":"数量","field":"ProductQuantity"},{"title":"型号","field":"ProductModel"}],[{"title":"规格","field":"ProductSpecification"},{"title":"产品图片","field":"ProductImage"},{"title":"备注","field":"ProductNote"},{"dataKey":"状态1","data":[],"title":"状态","field":"ProductStatus","type":"number"}]];
    const columns = [{field:'Id',title:'主键自增',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductNumber',title:'产品编号',type:'string',link:true,width:220,align:'left',sort:true},
                       {field:'ProductName',title:'产品名称',type:'string',width:220,align:'left'},
                       {field:'CId',title:'产品类型（产品类型外键）',type:'int',bind:{ key:'产品类型11',data:[]},width:110,align:'left'},
                       {field:'ZId',title:'制造方式(制造方式外键)',type:'int',bind:{ key:'制造方式11',data:[]},width:110,align:'left'},
                       {field:'DId',title:'单位(单位外键)',type:'int',bind:{ key:'单位11',data:[]},width:110,align:'left'},
                       {field:'PId',title:'品牌厂商(供应商外键)',type:'int',bind:{ key:'供应商11',data:[]},width:110,align:'left'},
                       {field:'ProductQuantity',title:'数量',type:'string',width:220,align:'left'},
                       {field:'ProductModel',title:'型号',type:'string',width:220,align:'left'},
                       {field:'ProductSpecification',title:'规格',type:'string',width:220,align:'left'},
                       {field:'ProductImage',title:'产品图片',type:'string',width:220,align:'left'},
                       {field:'ProductNote',title:'备注',type:'string',width:220,align:'left'},
                       {field:'ProductStatus',title:'状态',type:'int',bind:{ key:'状态1',data:[]},width:110,align:'left'},
                       {field:'IsDel',title:'删除字段',type:'int',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}